fix misplaced packets