Fix PA update equation: fix #254

See the diff and #254 for detail.