fixed prefab script issues