fix regression of ansi option