Fix duplicate photoset bug