fixed nested flag