Fixes issue #409: undefined behavior index entry.