fixed: assertion error on using custom cache size for devices