fixed swap for vector clears