fixes problem when tls write backend blocks