fix to avoid a model that has not be cached to be overwritted