Fixed ga code