Fix pagination bug in Dashboard widget caused by total record count