Bug reset cache size

fixes #14