Fixed some miss file and NPE.
Merge remote-tracking branch 'origin/2.0.x'