Fixed bug with changing avatar photo