fixed GA code