Fix bug for dealing ga error