Fixed Global vars screwing config