There is a solution for the problem. But it is more computationally expensive and not implemented in NuPIC.
Detailed discussion here: