fix auth calculated