fix inertia race condition throwing error