solves uncheckable checkbox