Fix issue where the position of the missing part was out-of-bounds.