fixed bugs for cga