fixed f and beta zeros error