fix issue where select with multiple only returns first selected