echo $html was mysteriously gone. The checkboxes is checked by default.