fix auto detect html