fixes passing data to a prefab