Added a hack for checkall/uncheckall to work.