Cache not correctly invalidated when leaving a space (#186)