fixed the backend racing