Fixed dead object error