Fixing time capsule script