fix bug in setting the previous state in the select2