bugfix: file_limit pointer cause Segmentation fault