Specs race condition workaround