Minor bugfixes

Had two res.send for one api call.