Race-Condition behoben