fix detector