fix intermittent transition issue