fixed typo in server causing exceptions