A bug in removing elements from a list via an iterator caused crashes.