minor fix to ph2cogrid