minor bugfix in cache