Fix zero size file retrieving.