Fix issue on Resizing and Rotating