fixed init beta0 method