Fixed bugs with `ag:position-frame'