Fix bug with user avatar uploading