fixed the calculation for recv node