Fix #118 (If component dimension has only 1 element, 0 will select as default)

Problem was the part responsible for select random elements