fixed hard error state lookup
Merge pull request #286 from pgte/fixharderrorstateslookup

Fixed hard error state lookup