Follow terrain with range sensor Error Failsafe TERRAIN-1

hi, there is a real bug when a range finder is activated, even with terrain following non activated. I was flying to test the range finder flying over a little obstacle to see if altitude was adapted, it was ok, but at the end, battery failsafe, the drone flight up and never stopped, far away from failsafe max alt. I put 250 to the max range distance… I really think this should never happen, what are failsafe for??? if they do not work like they should??? ! Sorry but it’s very frustrating to see a fly away in RTL because the only thing you can do is watching…