fixed despawn bug.