Fixed titles direction script