Fixing duplicate tags being displayed