bugfix check if checkbox is checked