Fixed (again) packet handler.