fixed flag assignment