fix undefined constant error on some rubies