bug fix in getpsf