fix ajax request crash in archive mode