Fix transformation push/pop when updating