Fixed a kill script bug