Wrong bit was being unset in error field

fixed