resolve error 'displayName not defined'