bug fix

contributed by Anton Milan
new caches