fixed the clearParm error in MapCustomTgs()