Fix warnings in AutoDestructScript