[FIX] resolve file function bug