fix gui checking