Use display name from magic cookie, fixes #4884