Part of memory leak solved. Destruction permission changed at MDPModel::next