bugfix: return nil if anchor not found on get_anchor xxxx function.