Fix bug in retrieving valid drivers from the API