Fixed parsing error in the script