fixed #2161: fixed crash of loading ETC file
Merge pull request #2827 from minggo/master

fixed crash of loading ETC file