fixing usernames not being resolved in entity detail