fix bug in stdin opening