Corrected a tag that has been incorrect this whole time.
There was already a </thead>, but no </table>, which logically comes after </tbody>.