Fixed the template circular import: overextends does not work as advertized