Fixed receiving buffer issue.