fix bug in situation with using method and menu into menu