is_open() error:) ph_num value wrong interpretation fix