fix template paths