fixed a bug where an extra empty line was showed when using single line waitfors