Fixed a bug from file shuffle.