Fixed N-frame selection problem