bugfixing the caching functions
Version 1.42