Server packet debug code and fix.