Fixed Script Errors

Fixed Script Errors