fix for 1.9.3 ruby