fix post bugs in linkphaseweight.cc