Fix bug in address reference