fix #374. avatar issue