Fixed error that was occuring in responses controller.