fix shared globals