fix typo that was only triggered in ruby < 2