Fixed updateScript