Fixed snapping issue of the form on opening