Fix main form