Fixed issues with extracting files from AIPs.