Fixed serializing bug with checkboxes