prevent flicker of uncompiled template