bugfix for prior data