Fix issues in the script. not added to option reading