fix gui checking
Merge pull request #4 from rhysd/fix/gui_checking

Fix gui checking