Fixed main frame read only problem
Fixed main frame read only problem