system_error bug fix.