fix bug with handling more than 99 files