hack to fix snippet color bug