bug fixed for nil pointer
debug private server