It's OK the way it is: ref->addr is the leaf page's address, that is, it's never instantiated, and always points to the on-page address cell.