fix of detector