Fixed a bug in the vector space caching stuff