fix for ResourcePackage endless loop in inflate