Fixed the reversed logic with USE_ARCHIVE