fix empty photoMd field