errors incrementing globals without sync