Replace half flag with fractional variable