Fix incorrect iterator usage, and update a log message to be correct.  Cannot erase the iterator currently being used; need to assign to return value of erase()