fix bug in phsp.

fyi.