Fixed some script warnings