Fix photo associations.