fix closeOnSelect and maximumSelectionSize combo bug. fixes #672