Add this->spaces_size = 0 to DP constructor.