Fixed bugs in Partitioner.jl