Fix a bug when editor switch back from maxinum to normal.