fix customavatar so it doesnt write duplicate lines to the avatar file