fixes bug with switching between vps