fixed bug with not outputing all selected options