Fixed a bad <IF> TDL statement