Observed data in Bayesian networks

I was following the discussion and I was able to create Bayesian Networks with my data. The results of marginal probability are similar to when I use another package that uses a maximum likelihood approach.

However, when I try computing prob(veh_type|injury = 1) or prob(night|injury = 1) by assigning 1 value under observed for injury line in a code, the results are not correct.

Could you tell me the correct way of computing the condition probabilities? I am interested to compute prob(veh_type|injury = 1) and prob(injury|night = 1). I appreciate your help.