fix loading compressed resources in an isolate.