Fixed bug in network request handling