Fixed encryption detection bug.