Fixed template overriding.