fixes ajax bug in controller