Fixed issue with 'spawn on teammate' feature