sendResponse errors fixed

sendResponse errors fixed