Fixed a bug.

Fixed a bug which caused empty checkboxes to not update properly.