Apply fix from https://github.com/pat/thinking-sphinx/pull/834