fix overlapping on equal dims