fix template file path