bug fix, sort the PM header margin