fix linux crash bug & make build.js successfuly