resolve duplicate references to controllers.