Fixed untrusted resource issue with