fixed bug with duplicate requests to server