Fix a bug in template, expire = null now works.