Fixed uploading of avatar.