fix dying state