more sensible name for error type
fixed beta NaN bug