max cache size fix