Fix pack_fence and range pack functionality.