Corrected minor bugs in request processing