Bug fix for max file size