Fix external resource typeof. Add external value