Fixed minor bug in prc script