try to fix photo grouping bug