fix external mapping on destroy