fix the bug of menu