fixes to edit avatar