fixed: set max file size first