Has createCheckbox() always made a checkbox with a div or is it a bug?

i have a for loop that creates 20 checkboxes, however they are all in there own individual divs, which makes them all display: block which is not what i want.

any suggestions?