Correct invalid log reference issue