fix download bugs, delete pages