fix bug when searching for positive value