bug fix delete error