Fix bug- two documents downloaded simultaneously