Fixed wrong display of total record number.