fix alpha=1, beta=1 problem, and fix somethings.