Fix based on https://github.com/kmerz/charlock_holmes/commit/13b9b300576ae0006f57f88112e356bbe8062f83