Fixed partial detection bug.