fix $GLOBALS['server'] undefined