Changed bug in serialize message