fixed bug in ruby loader