Fix the error with multiple didReceiveData callbacks and refactor