I've fixed a little bug I found when testing xenoswarm... there might be a better way to do it though?