correct tpls preview loader logic