Fixed crashed in #214 #215
Merge branch 'master' into 1.6.4