Fixing parameters issue in location and locations controller.