fix syntax for flags attribute