Fixed some problems in the partitioner initialization.