Fixed bugs regarding drawing transformations