Fixing url in template