try to fix input stream error