fix the problem with crazy booleans in ruby