Fix error in pr script