fixed ruby export bugs