fix switching between different previews