Retuned, and made the min score more than 0 in path detector