Bug fixed: Wrong checkboxes when order changed

When the rows changed their order the checkboxes didn't match the rows. Fixed with this commit.