Fix scaling not saved on stack when layouting objects