Fixes bugs in cache debug message and Wrap config