Fixed bugs and restrict the minimum size of window forms.