Fixed the preparation script.