Fixed some mistakes about the psf function.