tweak production compilation for index template