fix levels-deep bug