Fix bug effecting select all rows checkbox