fixed hash error

fixed an error where hash would continue to build on itself in the main
class when adding multiple links in one session.