BM fix

Boyer moore fix