fix misplaced end tag