Fix annoying warning because of some deprecated global variables