fix gui nullp