fix for target detection