Fix wrong check when adding hash fragment
Merge pull request #543 from kobynet/master

Fix wrong check when adding hash fragment