bug fix for disappearing vis when switching between different views