Fix issue if only one element is checked