Fix bug 2727, duplicate problems