Bugfix in DialogSubWindowSelector when there is no max number of selected frames