Fix the field name [template] and NullPointer error in content.