Fix multi instance encapsulation error (#98).