fixed bug in response.send