fix for previous fix.

seems like erase() works differently with my compiler than it does with yours