Update invariant
First cut at making clearSelection faster
Made clearSelection faster