fix bug with package searches