fixes #19765, an alternative to #19768 the advantage of this approach is it is less error prone, as the actual position and size of the storage sectors is calculated