fix for static templates