Fix transformation for text rendering