Set correct error. Refs gh-199