Fixed the small errors in the script