Rotated text works but is buggy