Fixed issue where number of items displayed is not showing