fix calling post_archive