Keep compatible with old ruby version (1.8)