fix the fragment mode

The fragment mode doesn't work right now, because the flag is read before its evaluated.
Would this run on any continuous integration server?

Could we use null instead?