Fixing bug in checkbox.