fix for bug 2556: Overlaying records sometimes creates new record