fix showing flag