Correct the size ot MainUI frame.