bugfix to prior