Fixes bugs in the caching of location options.