still try to fix the photo grouping bug