fix a bug in the sample
archiving is now beraly working, this is the worst check in ever