fix history empt lines