When your objects spawn is based on an object that is no longer there then it returns a null or zero value and that is why they head to 0,0.
You can fix it by making your player invisible and disabled instead of destroying it when dead or when dead set the spawned objects to the last position the player was at or some other position.
You would need to store the players last position X and Y in global variables if you want the objects to continue moving to that position.