fixed bug in preprocess grammar of TDL