Fixed the scripts