fix kill chan not working