fixes #7608 typo overridden and better link_to_if