conditions for multiple output file problem fixed
fixed #126