Fixing synchronization in packet buffer