Fix direction setting in player