fix using global variable in configuration