packet length is now correct