fixed very subtle but serious errors in CoordinateAnalyzer