fixed dead check