User avatar bug fix