Fixed recv bug