correct bad markup