Fixed typo where server was not defined