fixed the bug in max number of items displayed for matched results