Correct direction calculations