fixed missing global