fixed error in dynamic menu