Fixed logic of checked items