The navigation lights are Red, Green and all around white light. You MUST have the all around steaming light on when running at night. This same light becomes an anchor light, when it is on alone, and the boat is at anchor.
So the switch is incorrectly wired.