Avoid flicker when switching back to composited mode