fix displayName (not displayname) in generated code