fix for ruby