fixed lots of bug for message transform in server system