Fixed problems with the draws in the index template