Fixed a minor issues in the script - pull the main branch of SMACK.