correct a bug in overlapping