FIX some file crash bug