fix bug in link_to getter