fix tags infinite inheritance