remove empty fields from packet