fix periodical gui lag