Fix minor bugs in response serving