fixed a problem with flag parameters being formatted incorrectly