Fixed a bug in the list item generatig method. XSS prevention killed the checkbox here too.