Fix issue in needsCompile.