Merge pull request #7222 from minggo/warnings-fix

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

fix gui reader