fix formatting bug in pi pages