fix duplicate record delete issue

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>