fix for global