Fix direction settings