Fix using global variable, fix disabled.

Fix using global variable, fix disabled.