fixed seg fault when trying to detelete with no entries