fixbug to run terracotta