Fixed some bugs in psl_read and psl_load