Fixed scoping issue in config