corrected typo for log_error