fixed coord class constructor.