fixed toggleSelect bug