fixed when gui is moved, so that it is not falling behind