fix of detection