r1632 bug fix in PobcPeriodicDirectional()