Fixed coa extraction so that it can handle more than (001) oriented c axis