Repairing bag in tags rank