fix delete error