clean "undefineds" by error_log