Fixed valid delta range check to work on non planar beds.