Fixed performance when search packages.