Removed _repair_tags() - it wasn't really neccessary.