fix gui issue (when window is greater than screen)