fixed InputStream not closed