fixing weird photo save error