fix photo count