fix delete record