fix for unarchive 8257

This commit fixes the issue in #8257