Fixed compile error.
Merge pull request #846 from shujingke/PM

Fixed compile error.