fixed setting prior in least squares solver