fix the responseWriter