Fixed first receive doesn't work and added event receiving