Fix dismissing the PhotoPicker