Fixed inputStream error.