Fixed error when subtree limit has not been defined