Ugh. STL iterator invalidate.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>