bug fix for html options in th