temporary fix for templates loading twice