bugfix in cache