Fix an undefined var error on server.