Fix ever increasing depth