fix a crash bug when zero length message is received