fix ncomp from coords