fix cache size constraint