nbStacks was not set by the constructor