Fix when more than 2 files