Replace the assert with _fix_local_cache()
Merge pull request #229 from aplanas/master

Replace the assert with _fix_local_cache()