Fixed issue with template paths