[BUGFIX] Avoid a race condition in the specs