fix bug when deleting a ride