fix for old ruby version