Bug fix: map array is zero, not 1-based.