Fixed small server bugs.