fixed race condition when a request is done while another just arrived
CDB-471