https://github.com/numenta/nupic/issues/567