bug fix in handling of non rectilinear unit cells