fixed dieCheck