Fixed output file flag value nil