fixed multiple requests in one callback function