bugfix in legacy pRef support