fix undefined username with username truncate