Fix checked count when using select-all

@alex-deaconu please review