fix cases with doublons