fix exif error when put to database