Fix initCheckAllboxes for a given context