Fix race condition lolol