Fix initSelection method with empty input value