correct console log error