Fix save photo metadata error