Fixed bug with the avatar field