fixed zombie logic