fix for command-line buffer