fix(reference-error): fix reference error during compilation errors