fix bug for alpha