Fix slice bug before DecodeMessage call