fixed minor issue with search