Fixing JAllPrior bug  - not properly handling  prior type change.