Non-secure file loading fix