fix the bug of receive data