fix for index template compiling