Fixed handling of nicknames as 'refid':