fixed message rendering order