On the right/wrong tack
To be headed in the right/wrong direction, derives from sailing, the figurative use of which dates from the late 19th century.