Fix rank not getting updated when filters are cleared