Fixed an IO bug with prefabs