[Bugfix] fragment with longer ID e.g. foo-bar will match shorter ID (e.g. foo)