fix gui rendering