height and width transformation fix