fixed a bug impacting small files