Correct recv function