bug fix of ps.hpp/ps.cpp, compiled.