Fix max file size check