Fix in menu constructor for namespaced models.