fixed debug mode race condition