fixes #854 with bad link after code refactor