fix bugs in AreaTree DTCompiler