fixed erro with displaying avatar in header