fix leftsidebar and nosidebar templates