Bugfix: clearing cache in add removed parent cache

This was beacuse _clear_cache doesn't create a new dict