fix empty line add bug after click reset button