fix the "alpha and beta can't be 0" bug