totalItems was set to "" instead of 0, if no data