Fixed issue with error flag not being properly set.