more error->log_error fixes