Fixing an issue with code logic in file_limit that was causing array out-of-bound data access.