Fixed errors (infeasible solutions were accepted because residual capacities were not refreshed)