check for similar records fixes #4908