Fix a potential crash
Update the profile picture in the profile page