Fix potential off-by-one when retrieving checkbox values