I tried to change this line but it seems it doesn't work! detect works like a charm instead. I keep detect but in future if we found a better way, we'll change it.