Fix delete external resource