fix bug in menu plugin