Attempt to fix crash caused by race condition