Bugfix on beta_adjust