Not working global variables