close main frame was fixed