fix one error not being handled correctly