Spawn platform bug fix