fixed bug with checkboxes ticking