Fixed sharing global vars between classes