fixed code typo that was causing server to crash.