fix buildResponse