Fixed global error status value problem.