Fix the problem of flag usage