fix for work in ruby < 2.0