fixed source of flag