Fixed #168. Allow base template overriding