Fix gca to work correctly