fix order in packet