fix prms reverse bug