Fix error in profile picture uploader