Fixex bug on totalItems count