Fix rotation bug with saving instances