some ruby fix