Fixing silly global var