fixed byte ordering issue in imsg struct