Fix stiemap generation.