Fix getInputStream()