Fix flags definition