Fixed selectionChanged event so it always fires when doc.select is called