fix bugs
Merge pull request #2 from shengnan/PA_fix_bugs

fix bugs