fixed bug in GA