fixed typo in halt on error option