Fixed Script and typo errors