Global variable mistake"