fixed bug with too little quantity of flagmarkers(incorrect labels' positions).
found a new bug with positioning of magnify buttons.