Fixed server pointer-dereferance bug