Fixed a few scripts