fix crash while unchecking a large number of items