fix gui problem