fix some download bugs
pass download small files tests