Checkboxes bug with ajax. Fixes #7