Fixed a nasty bug caused by the select object being left in an indereminate state after a remove operation.