fix chosen plugin bug