fix flag print out