Fixed err results swapping bug