fix issue #10 (Short flicker when switching between context menus)