fix resHess$code checks