Fixing resending of data packets