Solve problem in mapCtrl