[fix][compiler] fix compiler bugs and syntax conditions