cursor open bug fix in execute multi query