Fixed some bugs that were keeping the server from starting