bug fixed in rb lib get instance, regarding static variable