fix issue where zoom window is drawn on the right side when it shouldn't be