fix gui reader
Merge pull request #7223 from andyque/fixMinorBugs

fix gui reader