The method "restore_archived_object" was not working because the filename was never used.

I made a quick change on "restore_archived_object" function that allows now the use of the method.