fixed constant WARN to its value in ruby (2)