bug fix delete