solve label overlapping problem