bugfix readpsf.m