allowedToDrive bugfix