fix deprecated method of KNPMenu bundle