Fix anchoring on main form