fixed GA code in controller