fixing more errors from error_log