Assume a none empty tree has already been generated

Fix #344