fix http://ruby-china.org/topics/10660