refs #433, fix error code