fix the dead cycle