Fixes when the maxFiles has already been reached