fix bug I made in pr.c