fix bug of ps