Fixed another race condition in CachedSpec