fix triangular domain