fix generated output of empty string