Fix bug in node cache.