fixing parmetis bug as in master