fixed bug of PS1 p_ret code