Fixes a bug dealing with hash linking