bugfix: kill was not working properly