fix high cpu in menu