fix problem of double empty lines