Duplicate cases appear after searching for an existing case