Fix selecting of sorted photos