Fix compatibility for knpmenu 2