fix extraneous end tag