fixing GET request error