another UB fix