Make the selected attribute correctly picked when multiple option is used