adds hack to fix toggling problem