Fixes findDirection.