This line definitely catches the race condition. Great patch!