reset transform before setting size