fixed flag build