fix get direction