fixed th td bug