fix issue where same entry mysterious doubled or triple up