Fixed severe bug that caused server failure.

Signed-off-by: Peter Atashian <retep998@gmail.com>