Fix detect