Fix for text rotation