fixed a crash issue when receives a response packet