Fixes a bug where multiple tags on the same commit would throw.