Removes duplicate entries after reading cmap table

Fixes #3025