fix crashing issue entirely pertaining to viewoprt movement

turns out i was trying to dereference to erase another already erased iterator