packet send bugfix