fixed resending in timeout