fix iostream error