fixed small files hanging bug