Some runtime errors in remove, related to empty...().