Fixing application path in template