fix gui resize