Fix possible module index overlap.