Fixed: wrong condition when setting the frame in CPWindow when ordering a view