Fixes an issue in StringIdMapper where size instead if high index should be used