loadTemplate was leaving some artifacts in SMlite