:bug: Fix opening a file without overridden scope
Clean up the returned object using a whitelist