Fix for "select all" checkboxes

Fixes select all style checboxes whenever there were more
than one per page

Fixes #247