Fixed bug in HTTP server