Fix creating multiple intervals for cats & z-index