fixed a problem with kill