fixed root null handling in server