replaced super() with super(type, obj) in theme files