fix kill loops nonsense